FUNCTIONS: There is a function defined in the code editor. Let's see how it works!

A function is a named block of code that does a specific task.

  • Click Run and look at the stage. What happens? We need a function call!
  • From , drag out Function Call so that it is under the function. Don't indent this code!
  • Change my_function() to python_stamp(). Click Run now and see what happens!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)